
package org.montecristo.posmobile;

import org.montecristo.posmobile.frameAux.NewsReaderActivityPreguntas;
import org.montecristo.posmobile.previo.clases.encuesta.Seccion;
import org.montecristo.posmobile.R;

import android.content.Intent;
import android.content.res.Configuration;
import android.os.Build;
import android.os.Bundle;
import android.support.v4.app.FragmentActivity;
import android.view.Window;

public class ArticleActivity extends FragmentActivity {
 
    int mCatIndex, mArtIndex;

   @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        if (Build.VERSION.SDK_INT < 11) {
			//Quitamos barra de titulo de la aplicacion
			this.requestWindowFeature(Window.FEATURE_NO_TITLE);
		}
        if (getResources().getBoolean(R.bool.has_two_panes)) {
            finish();
            return;
        }
    	Intent intent=new Intent(this,NewsReaderActivityPreguntas.class);
		intent.putExtra("idApp", getIntent().getStringExtra("idApp"));    	
		intent.putExtra("idSecc",getIntent().getStringExtra("idSecc"));
		
		
		startActivity(intent);		
		this.finish();
      
    }
    
   @Override
    public void startActivity(Intent intent) {
    	// TODO Auto-generated method stub
    	super.startActivity(intent);
    	overridePendingTransition(R.anim.animation_leave,
                R.anim.animation_enter);
    }
    
   @Override
    public void onBackPressed() {
        super.onBackPressed();        
        overridePendingTransition(R.anim.animation_leaver,R.anim.animation_enterr);
    }
}
